package com.dxk.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "person")
public class person {



    private String name;
    private Integer age;
    private boolean happy;
    private Map<String,Object> map;
    private List<Object> list;
    private dog dog;

    @Bean
    public void ano(){

        System.out.println("方法");
    }
}
